<script>
import LeftMenu from "./LeftMenu.vue";
import Content from "./Content.vue";
import Head from "./Head.vue";
import MotorAnalysisVue from "./MotorAnalysis.vue";
import History from "./History.vue";
export default {
  components: {
    LeftMenu,
    Head,
    MotorAnalysisVue,
    Content,
    History,
  },
  data() {
    return {
      isShow: false,
    };
  },
  methods: {
    onChange() {
      this.isShow = !this.isShow;
    },
  },
};
</script>

<template>
  <div class="box">
    <LeftMenu />
    <div class="right">
      <Head @change="onChange" />
      <History v-if="isShow" />
      <MotorAnalysisVue v-else />
    </div>
  </div>
</template>


<style>
body {
  margin: 0;
  padding: 0;
}
</style>

<style scoped>
.box {
  width: 100%;
  display: flex;
}
.right {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
}
</style>
